package com.ktjy.service;

import com.ktjy.dao.PetDao;
import com.ktjy.entity.Pet;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("petService")
public class PetServiceImpl implements PetService {
    @Resource(name = "petDao")
    PetDao petDao;


    @Override
    public boolean save(Pet pet) {
        return petDao.insert(pet) > 0;
    }
}
